package account

import "cowb/route"
import "time"

var router *route.Router

func init() {
	router = route.NewRouter()
	router.RegistMsg(new(GuestLogin))
	router.RegistMsg(new(SendSMS))
	router.RegistMsg(new(MBLogin))
}

func (this *GuestLogin) Handle() (code string, data interface{}) {
	return "0", nil
}

func (this *SendSMS) Handle() (code string, data interface{}) {
	for {
		select {
		case <-time.After(1 * time.Minute):
			return "0", nil
		}
	}
}

func (this *MBLogin) Handle() (code string, data interface{}) {
	return "0", nil
}
